from machine import Pin
import time

led = Pin(12, Pin.OUT)


def set_led_on():
    led.value(0)


def set_led_off():
    led.value(1)


def blink_led(times):
    for i in range(times):
        led.value(0)
        time.sleep(0.5)
        led.value(1)
        time.sleep(0.5)


if (__name__ == "__main__"):
    blink_led(100)



